// pages/my/index/components/ToggleList2/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    list: [
      { icon: '/assets/images/feedback.png', text: '意见反馈',  url: '/pages/my/feedbackForm/index' },
      { icon: '/assets/images/privacy_policy.png', text: '隐私政策', url: '/packageA/pages/privacyPermission/index' },
      { icon: '/assets/images/user_agreement.png', text: '用户协议',  url: '/packageA/pages/userAgreement/index' },
      { icon: '/assets/images/personal_settings.png', text: '个人设置',  url: '/packageA/pages/nopage/index?title=个人设置' }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick(event) {
      const { url } = event.currentTarget.dataset;
      wx.navigateTo({ url });
    }
  }
})